from django.conf.urls.defaults import *
from django.contrib import admin
from djangoutil import rest_url_pattern, rest_route
import settings
import monitor.controllers.main
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^mechamon/', include('mechamon.foo.urls')),
    
    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
	(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'static'}),
    (r'^admin/', include(admin.site.urls)),
	(r'^$', monitor.controllers.main.index),
    (rest_url_pattern, rest_route(settings.DOMAIN_MAPPINGS)),
)
